<template>
    <div>
        <div class="search">
            <label class="label1">
                <img src="/static/images/search.png" alt="">
            </label>
            <input type="text" :placeholder="placeholder">
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            placeholder: '输入商品名称',
        }
    }
}
</script>

<style scoped>
.search {
    width: 100%;
    height: 30px;
    background: #ffffff;
    display:inline-flex;
    border-radius: 20px;
    align-items: center; /*子元素垂直居中*/
}
.label1 img {
    width: 18px;
    height: 20px;
    margin-left: 5px;
    margin-right: 5px;
    padding-top: 3px;
}
input {
    font-size: 16px;
    height: 30px;
}
</style>